"""
v1 = {'alex','youda','zky'}
v2=[]
while True:
    content=input('请输入')
    if content in v1:
        v2.append(content)
        print(v2)
    else:
        v1.add(content)
        print(v1)
        """
# 注意是重新赋值还是内部修改！
# v = [1, 2, 3, 4, 5]
# v2 = v
# v[0] = [2, 4, 6, 7, 9, 8, 7, 6, ]
# print(v, v2)
"""
data_list=[]
for i in range(10):
    data = {}
    data['user']=i
    data_list.append(data)
print(data_list)
"""
"""
data=[1,23,4,5,6]
num=[]
for i in data:
    num.append(i)
print(id(num),id(data))
"""
"""
浅拷贝：只拷贝第一层！
深拷贝：拷贝所有数据（可变）
"""
"""
v1='zky'
import copy
v2 = copy.copy(v1)
print(id(v1),id(v2))
#按理说应该不一样，但是有小数据池
v3 = copy.deepcopy(v1)
print(id(v1),id(v3))
"""
#特殊情况
v1=(1,2,3,4)
import copy
v2 = copy.copy(v1)
print(id(v1),id(v2))

v3 = copy.deepcopy(v1)
print(id(v1),id(v3))

